package cn.gson.school.entity.jiuye;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 复试表
 * 
 * @author 华少
 *
 */
@Entity
@Table(name = "tb_jy_retest")
public class RetestEntity {
	/**
	 * retest_id 复试编号 
	 * interview_id 面试记录编号 
	 * retest_address 复试地点
	 *  retest_time 复试时间
	 * retest_plan 复试预案 
	 * retest_result 复试结果
	 *  retest_plus 面试心得
	 */
	@Id
	@Column(name = "retest_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long retestId;

	@OneToOne
	@JoinColumn(name = "interview_id")
	private InterviewRecordEntity interviewId;// 面试记录

	@Column(name = "retest_address")
	private String retestAddress;

	@Column(name = "retest_time")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date retestTime;

	@Column(name = "retest_plan")
	private String retestPlan;

	@Column(name = "retest_result")
	private String retestResult;

	@Column(name = "retest_plus")
	private String retestPlus;

	public Long getRetestId() {
		return retestId;
	}

	public void setRetestId(Long retestId) {
		this.retestId = retestId;
	}

	public InterviewRecordEntity getInterviewId() {
		return interviewId;
	}

	public void setInterviewId(InterviewRecordEntity interviewId) {
		this.interviewId = interviewId;
	}

	public String getRetestAddress() {
		return retestAddress;
	}

	public void setRetestAddress(String retestAddress) {
		this.retestAddress = retestAddress;
	}

	public Date getRetestTime() {
		return retestTime;
	}

	public void setRetestTime(Date retestTime) {
		this.retestTime = retestTime;
	}

	public String getRetestPlan() {
		return retestPlan;
	}

	public void setRetestPlan(String retestPlan) {
		this.retestPlan = retestPlan;
	}

	public String getRetestResult() {
		return retestResult;
	}

	public void setRetestResult(String retestResult) {
		this.retestResult = retestResult;
	}

	public String getRetestPlus() {
		return retestPlus;
	}

	public void setRetestPlus(String retestPlus) {
		this.retestPlus = retestPlus;
	}


	@Override
	public String toString() {
		return "RetestEntity [retestId=" + retestId + ", interviewId=" + interviewId + ", retestAddress="
				+ retestAddress + ", retestTime=" + retestTime + ", retestPlan=" + retestPlan + ", retestResult="
				+ retestResult + ", retestPlus=" + retestPlus+ "]";
	}
}
